﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Teste.Estados
{
    class Intro : StateBase
    {
        public Intro(ContentManager Content, GameWindow Window)
            : base(Content, Window)
        {
            this.Window = Window;
            this.caminho = "Intro/";
            this.fundo = Content.Load<Texture2D>(caminho + "Textures/intro");
        }

        public override void Update(GameTime gameTime)
        {
            if (Teste.teclado_atual.IsKeyDown(Keys.Enter))
            {
                Teste.stateManager.GoTo(Teste.State.MENU);
            }
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(fundo, new Rectangle(0, 0, Window.ClientBounds.Width, Window.ClientBounds.Height), Color.White);
        }
    }
}
